/*
 * @Author:gxx
 * @Date: 2021-03-29 15:05:27
 * @Last Modified by: gxx
 * @Last Modified time: 2021-03-29 15:05:27
 * @Description: 算法竞赛经典入门　３－１　Ｔｅｘ中的引号
*/
#include <iostream>
#include <string>
#include <fstream>
#include <unistd.h>
using namespace std;

int main(int agrc, char ** agrv){
    string in_file;
    string out_file;
    int res;
    while((res = getopt(agrc,agrv,"c:i:h")) != -1){
        switch(res){
            case 'c':
                in_file = optarg;
                break;
            case 'i':
                out_file = optarg;
                break;
            default:
                break; 
        }
    }
    ofstream out(out_file);
    ifstream in(in_file);

    string input;
 
    while(getline(in,input)){
        for (int i = 0; i < input.size(); i++){
            if (input[i] == '“'){input[i] = '\"';
            cout <<"?" <<endl;}
            if (input[i] == '”')input[i] = '"';
        }
        out <<input+'\n';

    }

    return 0;
}